package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the DRUGSTORAGE_LACK_DRUGS database table.
 * 
 */
@Entity
@Table(name="DRUGSTORAGE_LACK_DRUGS")
@NamedQuery(name="DrugstorageLackDrug.findAll", query="SELECT d FROM DrugstorageLackDrug d")
public class DrugstorageLackDrug implements Serializable {
	private static final long serialVersionUID = 1L;

	public DrugstorageLackDrug(BigDecimal medcineCost, String medcineNote, BigDecimal medcineNumber) {
		super();
		this.medcineCost = medcineCost;
		this.medcineNote = medcineNote;
		this.medcineNumber = medcineNumber;
	}

	@Id
	@Column(name="DRUGSTORAGE_LACKDRUGS_ID")
	@SequenceGenerator(initialValue=100,allocationSize=1,name="DRUGSTORAGE_LACKDRUGS_ID_GENERATOR", sequenceName="SEQID")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DRUGSTORAGE_LACKDRUGS_ID_GENERATOR")
	private long drugstorageLackdrugsId;

	@Column(name="MEDCINE_COST")
	private BigDecimal medcineCost;

	@Column(name="MEDCINE_NOTE")
	private String medcineNote;

	@Column(name="MEDCINE_NUMBER")
	private BigDecimal medcineNumber;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public DrugstorageLackDrug() {
	}

	public long getDrugstorageLackdrugsId() {
		return this.drugstorageLackdrugsId;
	}

	public void setDrugstorageLackdrugsId(long drugstorageLackdrugsId) {
		this.drugstorageLackdrugsId = drugstorageLackdrugsId;
	}

	public BigDecimal getMedcineCost() {
		return this.medcineCost;
	}

	public void setMedcineCost(BigDecimal medcineCost) {
		this.medcineCost = medcineCost;
	}

	public String getMedcineNote() {
		return this.medcineNote;
	}

	public void setMedcineNote(String medcineNote) {
		this.medcineNote = medcineNote;
	}

	public BigDecimal getMedcineNumber() {
		return this.medcineNumber;
	}

	public void setMedcineNumber(BigDecimal medcineNumber) {
		this.medcineNumber = medcineNumber;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}